package houseproject_commity.service.impl;

import houseproject_commity.entity.Commity;
import houseproject_commity.mapper.CommityMapper;
import houseproject_commity.service.commityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by ws on 2019/6/23.
 */
@Service
@Transactional
public class commityServiceImpl implements commityService {
    @Autowired
    private CommityMapper commityMapper;
    @Override
    public List<Commity> findByid(Integer id) {
        return commityMapper.findByid(id);
    }

    @Override
    public void save(Commity commity) {
       commityMapper.save(commity);
    }

    @Override
    public void del(Integer id) {
        commityMapper.del(id);
    }


}
